package com.zimmur.service.zone;


import java.util.List;
import java.util.TreeSet;

import com.zimmur.model.zone.SharedProperty;
import com.zimmur.model.zone.TopicComment;
/**
 * 话题评论服务接口
 * @author Administrator
 *
 */
public interface ITopicCommentService {  
	/**
	 * 添加
	 * @param topic
	 */
    int insertTopicComment(TopicComment  topicComment);
    /**
	 * 查询
	 * @param topic
	 */
    List<TopicComment> pageCommentList(long topicId,long userId,Integer pageNow);
    /**
     * 按CreateUser 查出其评论过的话题topicId
     * @return
     */
    TreeSet<Long> selectByCreateUserTopicCommentSet(SharedProperty sharedProperty);
    /**
     * 根据话题ID统计其话题的总评论数
     * @param topicId
     * @return
     */
    Integer countByTopicIdTopicComment(long topicId);
    /**
     * 更新评论大赏状态
     * @param commentId 评论ID
     * @param rewardStatus 打赏状态 0=未打赏 1=已打赏
     * @return
     */
    boolean updateCommentRewardStatus(long topicId,long commentId,int rewardStatus);
   /**
    * 查询话题详情的热门评论 默认10条
    * @param topicId
    * @param userId
    * @return
    */
    List<TopicComment> pageHotCommentList(long topicId,long userId,Integer pageNow);
    /**
     * 更新评论点赞数
     * @param commentId
     * @param praise
     * @return
     */
    boolean updateCommentPressNum(Long commentId,int praise);
}  